package com.example.houqin_oa.controller;

import com.example.comment_oa.pojos.rear.Loss;
import com.example.comment_oa.pojos_vo.LogisticsVo.LossVo;
import com.example.comment_oa.response.AjaxResponse;
import com.example.houqin_oa.service.LossService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:报损报溢记录
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2022-12-03 0:34
 * @Entry_Name:my_springcloud_project01cangku
 */
@RestController
@CrossOrigin
@RequestMapping("/houqinOa")
public class LossController {

    @Autowired
    LossService lossService;

    @PostMapping("/Loss/LossAll")
    public AjaxResponse LossAll(@RequestBody LossVo lossVo){
        return AjaxResponse.success(lossService.lossAll(lossVo));
    }
}
